#ifndef GRAPHICS_SCENE_GRID_H
#define GRAPHICS_SCENE_GRID_H

#include <QGraphicsScene>

class GraphicsSceneGrid : public QGraphicsScene
{
public:
  GraphicsSceneGrid(QObject* parent=0);

  void setGridSize(unsigned int size);
  unsigned int gridSize() const;

  void setGridColor(const QColor& color);
  QColor gridColor() const;

protected:
  virtual void drawBackground(QPainter *painter, const QRectF &rect);

private:
  unsigned int mGridSize;
  QPen mGridPen;
};

#endif
